using System;
using System.Collections.Generic;
using System.Text;

namespace TST.SharePoint.Shared
{
    public class FieldHyperlink : Field
    {
        private bool _renderAsImage;

        /// <summary>
        /// Constructor.
        /// </summary>
        public FieldHyperlink()
        {
        }

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="ID">The ID for the field.</param>
        public FieldHyperlink(string Id, bool RenderAsImage)
            : base(Id)
        {
            _renderAsImage = RenderAsImage;
        }

        /// <summary>
        /// Get the FieldType for the field URL.
        /// </summary>
        /// <returns></returns>
        public override FieldType FieldType
        {
            get
            {
                return FieldType.Hyperlink;
            }
        }

        public override FilterType FilterType
        {
            get { return FilterType.Unknown; }
        }

        public bool RenderAsImage
        {
            get { return _renderAsImage; }
            set { _renderAsImage = value; }
        }

    }
}
